package GoFPatterns.kt.test.counter.method.service.impl;

import GoFPatterns.kt.test.counter.method.dao.Counter;
import GoFPatterns.kt.test.counter.method.factory.AddFactory;
import GoFPatterns.kt.test.counter.method.factory.MULFactory;
import GoFPatterns.kt.test.counter.method.service.CounterService;

public class MULServiceImpl implements CounterService {
    @Override
    public void getCount(int num1,int num2) {
        MULFactory factory = new MULFactory();
        Counter counter = factory.counting();
        System.out.println("num1和num2计算后得到："+counter.count(num1,num2));
    }
}
